_______DO FILES

Run, in this order, the following dofiles:

1. __Data_building_part_1.do: This code generates various datasets that are used to run the models in the paper and appendix. 

2. __Data_building_part_2.do: This code generates a count of war by adjacent neighbors per country. This dataset is specific to Appendix Q.

3. __Data_analysis_and_figures.do: This dofile contains the code to produce all tables and figures in the paper and appendix. 

______ FOLDERS

To automatically store tables and figures, you will need to create two subfolders, titled "Figures" and "Tables", within the current working directory. 

______ DATA FILES

- war_default_dataset.dta: This dataset brings together Wimmer and Min (2009) and Reinhart and Rogoff (2009) plus sovereignty status from Boix, Miller, and Rosato, and serves as masterfile. 

- war_default_data_with_tentative.dta: This dataset brings together Wimmer and Min (2009) and Reinhart and Rogoff (2009) while including past units tentatively matched to current states (see Table A4 for list). 

- war_default_dataset_participants.dta: This data lists all inter-state war participants and location in Wimmer and Min (2009). It is used to compute war by adjacent neighbors in Table A21

- location_of_war_Wimmer_Min.dta: This dataset includes the information to map all inter-state war and nationalist secessionist war in Wimmer and Min (2009) into current states borders. It is used to produce Figures A2 and A3.

- TCSD_structure.dta: This file presents war and sudden stop data in time-series cross-sectional form. This datasets is meant to be used to run Duration Model in Table A23.

- war_by_COW.dta: This dataset lists all inter-state war in Sarkees and Wayman (2010) also know as Correlates of War, (v4.0). It is necessary for robustness tests in Table 7.  

- all_controls.dta: dataset with all controls used in the analysis. 

- worlddata.dta: Raster data drawn http://huebler.blogspot.com.es/2012/08/stata-maps.html, Creative Commons License. It is used to produce Figures A2 and A3.

- worldcoor.dta: Raster data drawn http://huebler.blogspot.com.es/2012/08/stata-maps.html, Creative Commons License. It is used to produce Figures A2 and A3.

- stone_data_1865_1914.dta: Data with flows of international lending meant to produce Figure 1. 


_______SOURCES 

- Meredith Reid Sarkees and Frank Whelon Wayman, Resort to War: A Data Guide to Inter-State, Extra-State, Intra-state, and Non-State Wars, 1816-2007 (Washington, DC: CQ Press 2010).

- Reinhart, Carmen and Kenneth Rogoff. 2009. This Time is Different. Princeton: Princeton University Press.

- Wimmer, Andreas and Brian Min. 2009. "The Location and Purpose of Wars Around the World: A New Global, Dataset, 1816-2001." 35(4):390-417.


